﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantastPlatform.Framework.IModel;
using FantastPlatform.Framework.Core;
using Newtonsoft.Json;
using FantastPlatform.Framework.Common.Serializable;

namespace FantastPlatform.Framework.Model
{
    /// <summary>
    /// 许可
    /// </summary>
    public class Permission : Item,IPermission
    {
        #region IPermission 成员
        [JsonConverter(typeof(InterfaceConverter<Resource>))]
        public virtual IResource Resource { get; set; }
        [JsonConverter(typeof(InterfaceConverter<Operation>))]
        public virtual IOperation Operation { get; set; }

        public virtual IList<IRole> Roles { get; set; }

        #endregion
    }
}
